<template>
	<view>
		<view class="logo">
			<!-- 标题 -->

			<uni-nav-bar leftWidth='200rpx' rightWidth='200rpx' @clickLeft="back" left-icon="left" :border='false'
				leftText="返回" background-color="#51a0f0" color="#fff" title="用户注册" />
			<!-- 登录 -->
			<view class="form">
				<view class="inp1">
					<input type="text" placeholder="请输入密码" />
				</view>
				<view class="inp2">
					<input type="text" placeholder="请再次输入密码" />
				</view>
			</view>
		</view>
		<!-- 同意 -->
		<view class="consent">
			<label>

				<checkbox /><text class="text">我已阅读并同意 <a>《用户使用协议》</a>和<a>《隐私政策》</a></text>
			</label>
		</view>
		<!-- 确认提交 -->
		<view class="next">
			<button type="primary" @click="ok">确认提交</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				});
			},
			ok() {
				uni.switchTab({
					url: '/pages/home/home'
				})
			}
		}
	}
</script>

<style lang="less">
	// @import url(/static/iconfont/iconfont.css);

	page {
		width: 100%;
		height: 100%;
		background-color: #f4f5fa;
	}

	.logo {
		height: 355rpx;
		background: url(/static/bg_02.jpg) no-repeat;
		background-size: 100%;

		// 标题
		.headbox {
			height: 100rpx;
			display: flex;
			justify-content: space-between;
			line-height: 100rpx;

			.title {
				color: #fff;
				font-size: 35rpx;
			}

			.mo {
				width: 200rpx;

				.iconfont {
					color: #fff;
					margin-left: 30rpx;
					display: block;
					font-size: 35rpx
				}
			}

			.mo1 {
				width: 200rpx;
			}
		}

		// 登录
		.form {
			height: 315rpx;
			background-color: #fff;
			margin-left: 25rpx;
			margin-right: 25rpx;
			margin-top: 115rpx;
			border-radius: 20rpx;
			padding-left: 35rpx;
			padding-right: 35rpx;
			overflow: hidden;

			.inp1 {
				margin-top: 70rpx;

				height: 100rpx;
				border-bottom: 2rpx solid #f7f7f7;
				box-sizing: border-box;

				input {
					width: 100%;
					height: 100%;
					font-size: 30rpx;
					color: #b8b8b8;
				}
			}

			.inp2 {
				height: 100rpx;
				box-sizing: border-box;
				display: flex;
				justify-content: space-between;

				input {
					height: 100%;
					font-size: 30rpx;
					color: #b8b8b8;
				}
			}
		}
	}

	// 同意
	.consent {
		height: 60rpx;
		margin-top: 230rpx;
		font-size: 20rpx;
		text-align: center;

		/deep/.uni-checkbox-input {
			border-radius: 50rpx;
		}

		.text {
			color: #bbbbbd;
		}

		a {
			color: #6eb1fd;
		}
	}

	// 确认提交
	.next {
		height: 100rpx;
		margin-top: 75rpx;

		button {
			font-size: 35rpx;
			line-height: 100rpx;
			display: block;
			height: 100rpx;
			width: 495rpx;
			border-radius: 50rpx;
			background-color: #5da7f0;
			border: none;
			color: #fff;
		}
	}
</style>